<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
/**
 * 中止结算
 */
class CreateStopSettleTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('stop_settle', function (Blueprint $table) {
            $table->increments('id');
	        $table->integer('staff_id')->comment('员工id');
	        $table->integer('store_id')->comment('店铺id');
	        $table->integer('staff_task_id')->comment('终止员工任务id');
	        $table->dateTime('termination')->comment('终止时间')->nullable();
	        $table->tinyInteger('is_agree')->comment('审核：1申请中，2已同意，3不通过')->default(1);
	        $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('stop_settle');
    }
}
